
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMenu>
#include <QWidget>

QT_BEGIN_NAMESPACE
class QListWidgetItem;
QT_END_NAMESPACE
namespace Ui {
    class MainWindow;
}
class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_btn_refresh_clicked();

    void on_lxc_containers_customContextMenuRequested(const QPoint &pos);

    void on_actionCreate_triggered();

    void on_actionDestroy_triggered();

    void on_c_start_clicked();

    void on_c_stop_clicked();

public slots:
    void slotContainersItemClicked(QListWidgetItem *item);

private:
    Ui::MainWindow *ui;
    QMenu m_menu_containers;

    // QWidget interface
protected:
    void resizeEvent(QResizeEvent *event) override;
};

#endif // MAINWINDOW_H

